-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tail config #484
Add tail config #484
Conversation
…avis build failed.
Conflicts: Sources/XiEditor/RPCSending.swift
Conflicts: Sources/XiEditor/RPCSending.swift
Conflicts: Sources/XiEditor/Client.swift Sources/XiEditor/RPCSending.swift xi-editor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good at a first glance, although there are a few things I'd like to note:
- I highly recommend using the "Automatically trim trailing whitespace" feature in Xcode. The diff has a lot of unrelated whitespace changes, which can make it hard for reviewers to focus on the parts that matter.
- If I toggle tail on a file and I open another file, this causes a crash.
I do think tailing is a super cool feature that I'd like to have, since one of the things I commonly use xi for is to read logs. Hoping to see the next iterations of this feature!
When I started working on this we were targeting this to be like
Hmm. I cannot replicate this issue. Can you please provide more details? Keep in mind if you try to tail a file that doesnt exists, it does crash. (See TODO in description) But not sure if this is what you are trying to do.
Same here. There arent any editors out there that do this efficiently, and frankly the way |
Oh, I don't mean that the tail feature should trim whitespaces, but I was assuming you made this pull request in Xcode. I mean that you should turn on that setting in Xcode, so your diff doesn't have too many whitespace changes. Other than that, looking forward to your tail work! |
haha. silly me. Thanks. |
Heya, I took another look at this, and the changes look good! Here are some of my comments on this PR before it can be merged:
|
Yeah. Core is build successfully yesterday. Is there a way to force build?
I work on multiple machines so I commit everything I can which adds to the messyness. I will squash commits.
I have the trim whitespace setting turned on for sure. I'll try the advice thing when I squash commits. |
You can force a rebuild simply by force pushing to this branch again, that's what I do all the time too. :P |
Squashed commits: [4aa009d] Refactoring. [dbc4e71] Refactoring based on new changes in upstream.
@nangtrongvuon
|
This file needs to be reverted after that core's branch is merged but before this branch is merged here. Without this change, Xi mac will not build.
Im going to close this PR. There are too many unnecessary commits. I'll open a new PR with required changes. |
Closes xi-editor/xi-editor#922.
This PR adds a "Tail File" option under Debug menu. This option can be enabled/disabled per file.
TODO: Gray out this option if the file doesnt exist. No point in tailing a file that doesnt exist.
Review Checklist